home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_8.lha
/
5_8
/
5_8b1.h
< prev
next >
Wrap
Text File
|
1993-08-08
|
450b
|
20 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ uniform distribution in the interval [low,high)
truct urand : public randint
int low, high;
urand(int l, int h) { low = l; high = h; }
int draw();
;
/ exponential distribution random number generator
truct erand : public randint
int mean;
erand(int m) { mean = m; };
int draw();
;